<script setup lang="ts">
const route = useRoute()
</script>

<template>
  <div>
    <h1>Nuxt Routing set up successfully!</h1>
    <p>Current route: {{ route.path }}</p>
    <ul>
      <li><NuxtLink to="/about">关于</NuxtLink></li>
      <li><NuxtLink to="/post/1">文章1</NuxtLink></li>
      <li><NuxtLink to="/post/2">文章2</NuxtLink></li>
    </ul>

  </div>
</template>
